<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>add (ZooomrPhotosNotes)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File Zooomr.Photos.Notes.rb, line 24</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">a_parameter_hash</span>)
    <span class="ruby-identifier">method</span> = <span class="ruby-value str">'zooomr.photos.notes.add'</span>
    
    <span class="ruby-identifier">required_params</span> = [<span class="ruby-value str">'photo_id'</span>, <span class="ruby-value str">'note_x'</span>, <span class="ruby-value str">'note_y'</span>, <span class="ruby-value str">'note_w'</span>, <span class="ruby-value str">'note_h'</span>, <span class="ruby-value str">'note_text'</span>, <span class="ruby-value str">'auth_token'</span>]
    
    <span class="ruby-ivar">@zooomr</span>.<span class="ruby-identifier">params_are_valid</span>(<span class="ruby-identifier">required_params</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">a_parameter_hash</span>)
    
    <span class="ruby-identifier">params</span> = {  <span class="ruby-value str">'api_key'</span>     =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@zooomr</span>.<span class="ruby-identifier">api_key</span> }
    <span class="ruby-identifier">params</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">a_parameter_hash</span>)
    
    <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@zooomr</span>.<span class="ruby-identifier">call_post_method</span>(<span class="ruby-identifier">method</span>, <span class="ruby-identifier">params</span>)
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>